package com.groupbuying.redpacket.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.groupbuying.redpacket.dao.RedPacketRuleDao;
import com.groupbuying.redpacket.domain.RedPacketRuleDO;
import com.groupbuying.redpacket.service.RedPacketRuleService;



@Service
public class RedPacketRuleServiceImpl implements RedPacketRuleService {
	@Autowired
	private RedPacketRuleDao redPacketRuleDao;
	
	@Override
	public RedPacketRuleDO get(Long id){
		return redPacketRuleDao.get(id);
	}
	
	@Override
	public List<RedPacketRuleDO> list(Map<String, Object> map){
		return redPacketRuleDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return redPacketRuleDao.count(map);
	}
	
	@Override
	public int save(RedPacketRuleDO redPacketRule){
		return redPacketRuleDao.save(redPacketRule);
	}
	
	@Override
	public int update(RedPacketRuleDO redPacketRule){
		return redPacketRuleDao.update(redPacketRule);
	}
	
	@Override
	public int remove(Long id){
		return redPacketRuleDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return redPacketRuleDao.batchRemove(ids);
	}
	
}
